<?php

namespace App\Entity;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ApiResource()
 * @ORM\Entity(repositoryClass="App\Repository\SarsUserTreatLogRepository")
 */
class SarsUserTreatLog
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $jiuzhenshijian;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $jiuzhenjigou;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $jiechushi;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $zhenliaoqingkuang;

    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\SarsUser", inversedBy="treatLogs",fetch="EAGER")
     * @ORM\JoinColumn(nullable=false)
     */
    private $user;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getJiuzhenshijian(): ?string
    {
        return $this->jiuzhenshijian;
    }

    public function setJiuzhenshijian(?string $jiuzhenshijian): self
    {
        $this->jiuzhenshijian = $jiuzhenshijian;

        return $this;
    }

    public function getJiuzhenjigou(): ?string
    {
        return $this->jiuzhenjigou;
    }

    public function setJiuzhenjigou(?string $jiuzhenjigou): self
    {
        $this->jiuzhenjigou = $jiuzhenjigou;

        return $this;
    }

    public function getJiechushi(): ?string
    {
        return $this->jiechushi;
    }

    public function setJiechushi(?string $jiechushi): self
    {
        $this->jiechushi = $jiechushi;

        return $this;
    }

    public function getZhenliaoqingkuang(): ?string
    {
        return $this->zhenliaoqingkuang;
    }

    public function setZhenliaoqingkuang(?string $zhenliaoqingkuang): self
    {
        $this->zhenliaoqingkuang = $zhenliaoqingkuang;

        return $this;
    }

    public function getUser(): ?SarsUser
    {
        return $this->user;
    }

    public function setUser(?SarsUser $user): self
    {
        $this->user = $user;

        return $this;
    }
}
